View difference between Paste ID: rq9QEuv1 and YWYfSADh
SHOW: | | - or go back to the newest paste.
1
@EventHandler
2
public void onDamage(PotionSplashEvent evt) {
3-
	byte id1 = evt.getPotion().getItem().getData().getData();
3+
	Material mat = evt.getPotion().getItem().getData().getItemType();
4-
	byte id2 = evt.getPotion().getItem().getData().getData();
4+
	byte id1     = evt.getPotion().getItem().getData().getData();
5
	byte id2     = evt.getPotion().getItem().getData().getData();
6-
	if(evt.getPotion().getItem().getData().getItemType() == Material.POTION) {
6+
7-
		if(id1 == 32732 || id2 == 32764) {
7+
	if (mat == Material.POTION) {
8
		if (id1 == 32732 || id2 == 32764) {
9
			//blaaa
10
		}
11
	}
12
}