mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
SPIGOT-1862: Fix banners withj shields.
This commit is contained in:
parent
68b72776a9
commit
4c3da3f6e2
2 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class CraftBanner extends CraftBlockState implements Banner {
|
|||
|
||||
@Override
|
||||
public boolean update(boolean force, boolean applyPhysics) {
|
||||
boolean result = super.update(force, applyPhysics);
|
||||
boolean result = (isPlaced()) ? super.update(force, applyPhysics) : true;
|
||||
|
||||
if (result) {
|
||||
banner.color = base.getDyeData();
|
||||
|
|
|
@ -187,6 +187,9 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
|||
|
||||
@Override
|
||||
public BlockState getBlockState() {
|
||||
if (blockEntityTag != null && material == Material.SHIELD) {
|
||||
blockEntityTag.setString("id", "Banner"); // Hack
|
||||
}
|
||||
TileEntity te = blockEntityTag == null ? null : TileEntity.a(MinecraftServer.getServer(), blockEntityTag);
|
||||
|
||||
switch (material) {
|
||||
|
|
Loading…
Reference in a new issue