mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
12 lines
320 B
Diff
12 lines
320 B
Diff
|
--- a/net/minecraft/server/MapIcon.java
|
||
|
+++ b/net/minecraft/server/MapIcon.java
|
||
|
@@ -86,7 +86,7 @@
|
||
|
}
|
||
|
|
||
|
public static MapIcon.Type a(byte b0) {
|
||
|
- return values()[b0];
|
||
|
+ return b0 >= 0 && b0 < values().length ? values()[b0] : MapIcon.Type.PLAYER; // CraftBukkit
|
||
|
}
|
||
|
}
|
||
|
}
|