E2: Block pp/copy exploit

I've only modified the E:setMaterial function here, I don't think the exploit is possible with holograms so I did not add any checks in the hologram functions.