t3hk0d3/Modifyworld — Issue #12: ModifyWorld doesn't catch CraftStorageMinecarts correctly
Author: lycano
Created: 2012-01-31 21:21:54+00:00
State: open

Hi t3hk0d3,

nanashiRei recently found out that StorageMinecarts cant be denied by using "modifyworld.interact.storageminecart" only by adding "modifyworld.interact.storageminecart*"

StorageMinecart is an Entity thus having an Inventory. In those cases the inventory is appended to the ClassName in toString().

So either L88 of ModifyworldListener.java
String entityName = entity.toString().substring(5).toLowerCase();
should be changed to
String entityName = entity.getClass().getName().toString().substring(5).toLowerCase();

or EntityCategory should have
STORAGEMINECART("vehicle", StorageMinecart.class)