geforkt von Mirrors/Paper
SPIGOT-1758: Apply correct ItemMeta to new CommandBlock types
Dieser Commit ist enthalten in:
Ursprung
dcc45717b9
Commit
94ba824302
@ -103,6 +103,8 @@ public final class CraftItemFactory implements ItemFactory {
|
||||
case BREWING_STAND_ITEM:
|
||||
case ENCHANTMENT_TABLE:
|
||||
case COMMAND:
|
||||
case COMMAND_REPEATING:
|
||||
case COMMAND_CHAIN:
|
||||
case BEACON:
|
||||
case DAYLIGHT_DETECTOR:
|
||||
case DAYLIGHT_DETECTOR_INVERTED:
|
||||
|
@ -365,6 +365,8 @@ public final class CraftItemStack extends ItemStack {
|
||||
case BREWING_STAND_ITEM:
|
||||
case ENCHANTMENT_TABLE:
|
||||
case COMMAND:
|
||||
case COMMAND_REPEATING:
|
||||
case COMMAND_CHAIN:
|
||||
case BEACON:
|
||||
case DAYLIGHT_DETECTOR:
|
||||
case DAYLIGHT_DETECTOR_INVERTED:
|
||||
|
@ -166,6 +166,8 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||
case BREWING_STAND_ITEM:
|
||||
case ENCHANTMENT_TABLE:
|
||||
case COMMAND:
|
||||
case COMMAND_REPEATING:
|
||||
case COMMAND_CHAIN:
|
||||
case BEACON:
|
||||
case DAYLIGHT_DETECTOR:
|
||||
case DAYLIGHT_DETECTOR_INVERTED:
|
||||
@ -248,6 +250,8 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||
}
|
||||
return new CraftSkull(material, (TileEntitySkull) te);
|
||||
case COMMAND:
|
||||
case COMMAND_REPEATING:
|
||||
case COMMAND_CHAIN:
|
||||
if (te == null) {
|
||||
te = new TileEntityCommand();
|
||||
}
|
||||
@ -316,6 +320,8 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||
valid = te instanceof TileEntitySkull;
|
||||
break;
|
||||
case COMMAND:
|
||||
case COMMAND_REPEATING:
|
||||
case COMMAND_CHAIN:
|
||||
valid = te instanceof TileEntityCommand;
|
||||
break;
|
||||
case BEACON:
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren