Code cleanup
This commit is contained in:
parent
75df9fbb6a
commit
dd8a333fe3
6 changed files with 11 additions and 11 deletions
|
@ -49,7 +49,7 @@ public class BlockCamera extends BlockAbstractContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TileEntity createNewTileEntity(World parWorld, int i) {
|
public TileEntity createNewTileEntity(World world, int metadata) {
|
||||||
return new TileEntityCamera();
|
return new TileEntityCamera();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -463,7 +463,7 @@ public class WarpDriveConfig {
|
||||||
WarpDrive.logger.info("Failed to get ore named " + ore);
|
WarpDrive.logger.info("Failed to get ore named " + ore);
|
||||||
return new ItemStack(Blocks.fire);
|
return new ItemStack(Blocks.fire);
|
||||||
}
|
}
|
||||||
final ArrayList<ItemStack> itemStacks = OreDictionary.getOres(ore);
|
final List<ItemStack> itemStacks = OreDictionary.getOres(ore);
|
||||||
if (itemStacks.isEmpty()) {
|
if (itemStacks.isEmpty()) {
|
||||||
WarpDrive.logger.info(String.format("Failed to get item from empty ore dictionary '%s'", ore));
|
WarpDrive.logger.info(String.format("Failed to get item from empty ore dictionary '%s'", ore));
|
||||||
return new ItemStack(Blocks.fire);
|
return new ItemStack(Blocks.fire);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package cr0s.warpdrive.data;
|
package cr0s.warpdrive.data;
|
||||||
|
|
||||||
|
|
||||||
import cr0s.warpdrive.Commons;
|
import cr0s.warpdrive.Commons;
|
||||||
import cr0s.warpdrive.WarpDrive;
|
import cr0s.warpdrive.WarpDrive;
|
||||||
import cr0s.warpdrive.api.IForceFieldShape;
|
import cr0s.warpdrive.api.IForceFieldShape;
|
||||||
|
|
|
@ -165,7 +165,8 @@ public class LivingHandler {
|
||||||
|
|
||||||
if (worldTarget == null) {
|
if (worldTarget == null) {
|
||||||
try {
|
try {
|
||||||
worldTarget = MinecraftServer.getServer().worldServerForDimension(celestialObjectChild.dimensionId);
|
final MinecraftServer server = MinecraftServer.getServer();
|
||||||
|
worldTarget = server.worldServerForDimension(celestialObjectChild.dimensionId);
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
WarpDrive.logger.error(String.format("%s: Failed to initialize dimension %d for %s",
|
WarpDrive.logger.error(String.format("%s: Failed to initialize dimension %d for %s",
|
||||||
exception.getMessage(),
|
exception.getMessage(),
|
||||||
|
|
Loading…
Reference in a new issue