CraftBook 3

CraftBook 3

139k Downloads

Vehicles no longer work

LadyCailinBot opened this issue ยท 4 comments

commented

CRAFTBOOK-2231 - Reported by Tehbeard

Minecart blocks no longer work due to .getType() being used to search for mechanism instead of .getTypeId().

This bug has occurred as a result of the re-factoring to remove Material dependency from Vehicles.

commented

Comment by me4502

I thought I'd made it use Integer instead if Material, but I'll look into it again.

commented

Comment by Tehbeard

The issue is that when searching for a mechanism, Map.get(Object key) should be given the Integer id, insead it's given the Material, so it never returns a mechanism.

commented

Comment by me4502

I'll look into it.

commented

Comment by me4502

Fixed