SPIGOT-4871: Manually opened double chest doesn't have close animation

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-05-05 18:39:58 +10:00
parent 8f5f07be27
commit e413f6ef8f
5 changed files with 19 additions and 185 deletions

View File

@@ -1,23 +0,0 @@
package org.bukkit.craftbukkit.inventory;
import junit.framework.Assert;
import org.bukkit.Material;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.junit.Test;
public class InventoryWrapperTest {
@Test
public void test() {
Inventory raw = new CraftInventoryCustom(null, 27);
raw.addItem(new ItemStack(Material.STONE));
Assert.assertTrue(raw.contains(Material.STONE));
InventoryWrapper wrapper = new InventoryWrapper(raw);
CraftInventory proxy = new CraftInventory(wrapper);
Assert.assertTrue(proxy.contains(Material.STONE));
}
}