mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 22:14:32 +00:00
Update mappings, move mod initialization to the async loader.
Signed-off-by: cpw <[email protected]>
This commit is contained in:
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));
|
||||
|
||||
Reference in new issue
Block a user