mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 23:45:44 +00:00
Updated FML:
MinecraftForge/FML@9c8ca4a4e3 Unlink banner block and item id. Mojang should of matched these up but they didn't -.- MinecraftForge/FML@84a101f344 Update Dev mcp mappings to 11-30 snapshot.
This commit is contained in:
1 parent
4caf09cd33
commit
59df94bd90
17 files changed
+70
-63
No files matched your search
@@ -193,7 +193,7 @@ public class DimensionManager
|
||||
worlds.put(id, world);
|
||||
weakWorldMap.put(world, world);
|
||||
MinecraftServer.getServer().worldTickTimes.put(id, new long[100]);
|
||||
FMLLog.info("Loading dimension %d (%s) (%s)", id, world.getWorldInfo().getWorldName(), world.func_73046_m());
|
||||
FMLLog.info("Loading dimension %d (%s) (%s)", id, world.getWorldInfo().getWorldName(), world.getMinecraftServer());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -238,7 +238,7 @@ public class DimensionManager
|
||||
System.err.println("Cannot Hotload Dim: " + e.getMessage());
|
||||
return; // If a provider hasn't been registered then we can't hotload the dim
|
||||
}
|
||||
MinecraftServer mcServer = overworld.func_73046_m();
|
||||
MinecraftServer mcServer = overworld.getMinecraftServer();
|
||||
ISaveHandler savehandler = overworld.getSaveHandler();
|
||||
WorldSettings worldSettings = new WorldSettings(overworld.getWorldInfo());
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class FishingHooks
|
||||
{
|
||||
fish.addAll(EntityFishHook.FISH);
|
||||
junk.addAll(EntityFishHook.JUNK);
|
||||
treasure.addAll(EntityFishHook.VALUABLES);
|
||||
treasure.addAll(EntityFishHook.TREASURE);
|
||||
}
|
||||
|
||||
public static enum FishableCategory
|
||||
|
||||
@@ -244,17 +244,17 @@ public class ForgeHooks
|
||||
|
||||
if (target.typeOfHit == MovingObjectType.BLOCK)
|
||||
{
|
||||
IBlockState state = world.getBlockState(target.func_178782_a());
|
||||
IBlockState state = world.getBlockState(target.getBlockPos());
|
||||
|
||||
if (state.getBlock().isAir(world, target.func_178782_a()))
|
||||
if (state.getBlock().isAir(world, target.getBlockPos()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isCreative && GuiScreen.isCtrlKeyDown())
|
||||
te = world.getTileEntity(target.func_178782_a());
|
||||
te = world.getTileEntity(target.getBlockPos());
|
||||
|
||||
result = state.getBlock().getPickBlock(target, world, target.func_178782_a());
|
||||
result = state.getBlock().getPickBlock(target, world, target.getBlockPos());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -353,7 +353,7 @@ public class ForgeHooks
|
||||
|
||||
public static boolean isLivingOnLadder(Block block, World world, BlockPos pos, EntityLivingBase entity)
|
||||
{
|
||||
boolean isSpectator = (entity instanceof EntityPlayer && ((EntityPlayer)entity).func_175149_v());
|
||||
boolean isSpectator = (entity instanceof EntityPlayer && ((EntityPlayer)entity).isSpectator());
|
||||
if (isSpectator) return false;
|
||||
if (!ForgeModContainer.fullBoundingBoxLadders)
|
||||
{
|
||||
@@ -391,7 +391,7 @@ public class ForgeHooks
|
||||
public static EntityItem onPlayerTossEvent(EntityPlayer player, ItemStack item, boolean includeName)
|
||||
{
|
||||
player.captureDrops = true;
|
||||
EntityItem ret = player.func_146097_a(item, false, includeName);
|
||||
EntityItem ret = player.dropItem(item, false, includeName);
|
||||
player.capturedDrops.clear();
|
||||
player.captureDrops = false;
|
||||
|
||||
@@ -444,7 +444,7 @@ public class ForgeHooks
|
||||
if (gameType == WorldSettings.GameType.SPECTATOR)
|
||||
preCancelEvent = true;
|
||||
|
||||
if (!entityPlayer.func_175142_cm())
|
||||
if (!entityPlayer.isAllowEdit())
|
||||
{
|
||||
ItemStack itemstack = entityPlayer.getCurrentEquippedItem();
|
||||
if (itemstack == null || !itemstack.canDestroy(world.getBlockState(pos).getBlock()))
|
||||
|
||||
@@ -46,7 +46,7 @@ class ChunkIOProvider implements AsynchronousExecutor.CallBackProvider<QueuedChu
|
||||
chunk.onChunkLoad();
|
||||
|
||||
if (queuedChunk.provider.serverChunkGenerator != null) {
|
||||
queuedChunk.provider.serverChunkGenerator.func_180514_a(chunk, queuedChunk.x, queuedChunk.z);
|
||||
queuedChunk.provider.serverChunkGenerator.recreateStructures(chunk, queuedChunk.x, queuedChunk.z);
|
||||
}
|
||||
|
||||
chunk.populateChunk(queuedChunk.provider, queuedChunk.provider, queuedChunk.x, queuedChunk.z);
|
||||
|
||||
@@ -23,11 +23,11 @@ public class FakePlayer extends EntityPlayerMP
|
||||
}
|
||||
|
||||
@Override public Vec3 getPositionVector(){ return new Vec3(0, 0, 0); }
|
||||
@Override public boolean canCommandSenderUseCommand(int i, String s){ return false; }
|
||||
@Override public boolean canUseCommand(int i, String s){ return false; }
|
||||
@Override public void addChatComponentMessage(IChatComponent chatmessagecomponent){}
|
||||
@Override public void addStat(StatBase par1StatBase, int par2){}
|
||||
@Override public void openGui(Object mod, int modGuiId, World world, int x, int y, int z){}
|
||||
@Override public boolean func_180431_b(DamageSource source){ return true; }
|
||||
@Override public boolean isEntityInvulnerable(DamageSource source){ return true; }
|
||||
@Override public boolean canAttackPlayer(EntityPlayer player){ return false; }
|
||||
@Override public void onDeath(DamageSource source){ return; }
|
||||
@Override public void onUpdate(){ return; }
|
||||
|
||||
Reference in new issue
Block a user