Paper/Spigot-Server-Patches/0100-Fix-cooked-fish-legacy-import.patch
Aikar 3faaaab75d Optimize isInvalidYLocation, getType and getBlockData
Some pretty micro optimizations, but this is the hottest method in the server....

This will drastically reduce number of operations to perform getType

the 2 previous patches was squashed into 1
2016-06-22 22:43:02 -04:00

23 Zeilen
1.1 KiB
Diff

From 59b4657819f58356f60016f3c27ef2de3eb3bf90 Mon Sep 17 00:00:00 2001
From: Jedediah Smith <jedediah@silencegreys.com>
Date: Tue, 1 Mar 2016 04:32:08 -0500
Subject: [PATCH] Fix cooked fish legacy import
diff --git a/src/main/java/net/minecraft/server/DataConverterMaterialId.java b/src/main/java/net/minecraft/server/DataConverterMaterialId.java
index 87b82eb..a7c71f4 100644
--- a/src/main/java/net/minecraft/server/DataConverterMaterialId.java
+++ b/src/main/java/net/minecraft/server/DataConverterMaterialId.java
@@ -261,7 +261,7 @@ public class DataConverterMaterialId implements IDataConverter {
DataConverterMaterialId.a[347] = "minecraft:clock";
DataConverterMaterialId.a[348] = "minecraft:glowstone_dust";
DataConverterMaterialId.a[349] = "minecraft:fish";
- DataConverterMaterialId.a[350] = "minecraft:cooked_fished";
+ DataConverterMaterialId.a[350] = "minecraft:cooked_fish"; // Paper - cooked_fished -> cooked_fish
DataConverterMaterialId.a[351] = "minecraft:dye";
DataConverterMaterialId.a[352] = "minecraft:bone";
DataConverterMaterialId.a[353] = "minecraft:sugar";
--
2.9.0