Update mappings, move mod initialization to the async loader.

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-06-21 22:42:16 -04:00
1 parent a14c2233e0
commit c10174d50d
35 files changed
+166 -214

No files matched your search

@@ -232,7 +232,7 @@ public class FluidUtil
return FluidActionResult.FAILURE;
}
if (player != null && player.playerAbilities.isCreativeMode)
if (player != null && player.abilities.isCreativeMode)
{
FluidActionResult filledReal = tryFillContainer(container, fluidSource, maxAmount, player, doFill);
if (filledReal.isSuccess())
@@ -300,7 +300,7 @@ public class FluidUtil
return FluidActionResult.FAILURE;
}
if (player != null && player.playerAbilities.isCreativeMode)
if (player != null && player.abilities.isCreativeMode)
{
FluidActionResult emptiedReal = tryEmptyContainer(container, fluidDestination, maxAmount, player, doDrain);
if (emptiedReal.isSuccess())
@@ -167,7 +167,7 @@ public class UniversalBucket extends Item
}
// clicked on a block?
RayTraceResult rt = func_219968_a(world, player, FluidMode.NONE);
RayTraceResult rt = rayTrace(world, player, FluidMode.NONE);
ActionResult<ItemStack> ret = ForgeEventFactory.onBucketUse(player, world, itemstack, rt);
if (ret != null) return ret;
@@ -190,7 +190,7 @@ public class UniversalBucket extends Item
{
// try placing liquid
FluidActionResult result = FluidUtil.tryPlaceFluid(player, world, hand, targetPos, itemstack, fluidStack);
if (result.isSuccess() && !player.playerAbilities.isCreativeMode)
if (result.isSuccess() && !player.abilities.isCreativeMode)
{
// success!
player.addStat(Stats.ITEM_USED.get(this));