@@ -39,7 +39,7 @@ public WeepingFishingBobberEntity(EntityType<? extends FishingBobberEntity> type
3939 super (type , world , luckBonus , waitTimeReductionTicks );
4040 }
4141
42- public WeepingFishingBobberEntity (PlayerEntity thrower , World world , int luckBonus , int waitTimeReductionTicks , ItemStack itemStack ) {
42+ public WeepingFishingBobberEntity (PlayerEntity thrower , World world , int luckBonus , int waitTimeReductionTicks ) {
4343 this (NetherAdditionsEntityTypes .WEEPING_FISHING_BOBBER_ENTITY_TYPE , world , luckBonus , waitTimeReductionTicks );
4444 this .setOwner (thrower );
4545 float thrownPitch = thrower .getPitch ();
@@ -277,9 +277,9 @@ public int use(ItemStack usedItem) {
277277 this .getWorld ().sendEntityStatus (this , (byte ) 31 );
278278 i = this .hookedEntity instanceof ItemEntity ? 3 : 5 ;
279279 } else if (this .hookCountdown > 0 ) {
280- LootWorldContext lootContextParameterSet = (new LootWorldContext .Builder ((ServerWorld )this .getWorld ())).add (LootContextParameters .ORIGIN , this .getPos ()).add (LootContextParameters .TOOL , usedItem ).add (LootContextParameters .THIS_ENTITY , this ).luck ((float )this .luckBonus + playerEntity .getLuck ()).build (LootContextTypes .FISHING );
280+ LootWorldContext lootWorldContext = (new LootWorldContext .Builder ((ServerWorld )this .getWorld ())).add (LootContextParameters .ORIGIN , this .getPos ()).add (LootContextParameters .TOOL , usedItem ).add (LootContextParameters .THIS_ENTITY , this ).luck ((float )this .luckBonus + playerEntity .getLuck ()).build (LootContextTypes .FISHING );
281281 LootTable lootTable = this .getWorld ().getServer ().getReloadableRegistries ().getLootTable (NetherAdditionsLootTables .LAVA_FISHING_GAMEPLAY );
282- List <ItemStack > list = lootTable .generateLoot (lootContextParameterSet );
282+ List <ItemStack > list = lootTable .generateLoot (lootWorldContext );
283283 Criteria .FISHING_ROD_HOOKED .trigger ((ServerPlayerEntity )playerEntity , usedItem , this , list );
284284
285285 for (ItemStack itemStack : list ) {
0 commit comments