From 013d85453eff89f2efacf6f7955d1b575d28cce4 Mon Sep 17 00:00:00 2001 From: drpepper240 Date: Sun, 20 Jul 2014 16:09:23 +0400 Subject: [PATCH] deployer fix Duplicated CC computers and turtles can make ComputerCraft unusable until the server restarts. --- src/cr0s/WarpDrive/WarpDriveConfig.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/cr0s/WarpDrive/WarpDriveConfig.java b/src/cr0s/WarpDrive/WarpDriveConfig.java index 3e275e9a..4f9156c6 100644 --- a/src/cr0s/WarpDrive/WarpDriveConfig.java +++ b/src/cr0s/WarpDrive/WarpDriveConfig.java @@ -279,11 +279,17 @@ public class WarpDriveConfig scannerIgnoreBlocks.add(Items.getItem("cesuUnit").itemID); scannerIgnoreBlocks.add(Items.getItem("batBox").itemID); if ( ICBM_Explosive > 0) - { scannerIgnoreBlocks.add(ICBM_Explosive); - } + if ( CC_Computer > 0) + scannerIgnoreBlocks.add(CC_Computer); + if ( CCT_Turtle > 0) + scannerIgnoreBlocks.add(CCT_Turtle); + if ( CCT_Upgraded > 0) + scannerIgnoreBlocks.add(CCT_Upgraded); + if ( CCT_Advanced > 0) + scannerIgnoreBlocks.add(CCT_Advanced); - // Do not scan ores and valuables + // Do not deploy ores and valuables for (int[] t : CommonWorldGenOres) // each element of this set is pair [id, meta] scannerIgnoreBlocks.add(t[0]); // we adding ID only