Skip to content

Commit

Permalink
Fix merge mistake about decorated_pot
Browse files Browse the repository at this point in the history
  • Loading branch information
Rothes committed Dec 21, 2023
1 parent 33957cb commit 0e9a1f8
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,18 +502,6 @@ ChangeResult placeBlock(Player player, PrismParameters parameters, boolean isPre

setBlockRotatable(newState, potActionData);
}
System.out.println(getMaterial());
System.out.println(actionData.getClass().getName());
if (POST_20 && getMaterial() == DECORATED_POT && actionData instanceof PotActionData) {
Location location = block.getLocation();
PotActionData potActionData = (PotActionData) actionData;
// TODO: getShards not mutable; waiting for API
// DecoratedPot pot = (DecoratedPot) newState;
// List<Material> shards = pot.getShards();
// shards.clear();
// shards.addAll((potActionData).shards);
setBlockRotatable(newState, potActionData);
}
} else {
Prism.debug("BlockAction 数据为 null :" + parameters.toString());
}
Expand Down

0 comments on commit 0e9a1f8

Please sign in to comment.