mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-1758: Apply correct ItemMeta to new CommandBlock types
By: md_5 <git@md-5.net>
This commit is contained in:
parent
637b5fb592
commit
4fc9890f64
3 changed files with 10 additions and 0 deletions
|
@ -103,6 +103,8 @@ public final class CraftItemFactory implements ItemFactory {
|
||||||
case BREWING_STAND_ITEM:
|
case BREWING_STAND_ITEM:
|
||||||
case ENCHANTMENT_TABLE:
|
case ENCHANTMENT_TABLE:
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
|
case COMMAND_REPEATING:
|
||||||
|
case COMMAND_CHAIN:
|
||||||
case BEACON:
|
case BEACON:
|
||||||
case DAYLIGHT_DETECTOR:
|
case DAYLIGHT_DETECTOR:
|
||||||
case DAYLIGHT_DETECTOR_INVERTED:
|
case DAYLIGHT_DETECTOR_INVERTED:
|
||||||
|
|
|
@ -365,6 +365,8 @@ public final class CraftItemStack extends ItemStack {
|
||||||
case BREWING_STAND_ITEM:
|
case BREWING_STAND_ITEM:
|
||||||
case ENCHANTMENT_TABLE:
|
case ENCHANTMENT_TABLE:
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
|
case COMMAND_REPEATING:
|
||||||
|
case COMMAND_CHAIN:
|
||||||
case BEACON:
|
case BEACON:
|
||||||
case DAYLIGHT_DETECTOR:
|
case DAYLIGHT_DETECTOR:
|
||||||
case DAYLIGHT_DETECTOR_INVERTED:
|
case DAYLIGHT_DETECTOR_INVERTED:
|
||||||
|
|
|
@ -166,6 +166,8 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||||
case BREWING_STAND_ITEM:
|
case BREWING_STAND_ITEM:
|
||||||
case ENCHANTMENT_TABLE:
|
case ENCHANTMENT_TABLE:
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
|
case COMMAND_REPEATING:
|
||||||
|
case COMMAND_CHAIN:
|
||||||
case BEACON:
|
case BEACON:
|
||||||
case DAYLIGHT_DETECTOR:
|
case DAYLIGHT_DETECTOR:
|
||||||
case DAYLIGHT_DETECTOR_INVERTED:
|
case DAYLIGHT_DETECTOR_INVERTED:
|
||||||
|
@ -248,6 +250,8 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||||
}
|
}
|
||||||
return new CraftSkull(material, (TileEntitySkull) te);
|
return new CraftSkull(material, (TileEntitySkull) te);
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
|
case COMMAND_REPEATING:
|
||||||
|
case COMMAND_CHAIN:
|
||||||
if (te == null) {
|
if (te == null) {
|
||||||
te = new TileEntityCommand();
|
te = new TileEntityCommand();
|
||||||
}
|
}
|
||||||
|
@ -316,6 +320,8 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||||
valid = te instanceof TileEntitySkull;
|
valid = te instanceof TileEntitySkull;
|
||||||
break;
|
break;
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
|
case COMMAND_REPEATING:
|
||||||
|
case COMMAND_CHAIN:
|
||||||
valid = te instanceof TileEntityCommand;
|
valid = te instanceof TileEntityCommand;
|
||||||
break;
|
break;
|
||||||
case BEACON:
|
case BEACON:
|
||||||
|
|
Loading…
Reference in a new issue