Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Fix banners on 1.13+
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed May 6, 2020
1 parent a936d64 commit 26eb520
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ private void readBase(CompoundTag tag, CallbackInfo ci) {

@Inject(method = "fromTag", at = @At("RETURN"))
private void onFromTag(CompoundTag tag, CallbackInfo ci) {
for (Tag t : patternListTag) {
if (t instanceof CompoundTag) {
CompoundTag pattern = (CompoundTag) t;
pattern.putInt("Color", 15 - pattern.getInt("Color"));
if (ConnectionInfo.protocolVersion <= Protocols.V1_12_2) {
for (Tag t : patternListTag) {
if (t instanceof CompoundTag) {
CompoundTag pattern = (CompoundTag) t;
pattern.putInt("Color", 15 - pattern.getInt("Color"));
}
}
}
}
Expand Down

0 comments on commit 26eb520

Please sign in to comment.